<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
       let a = "现有一组字符串分别为America、Greece、Canada、Britain、China、Egypt";
       let count = 0;
       
       let strings = a.split('、'); // 将字符串按照 '、' 分割成数组
       
       for (let i = 0; i < strings.length; i++) {
           if (strings[i].toLowerCase().includes('a')) {
               count++;
           }
       }
       
       document.write("包含字母'A'和'a'的字符串个数是: " + count);
    </script>
</head>
<body>

</body>
</html>
